package health.lm.com.shop.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by Android Studio .
 * Project：hlian health.lm.com.shop.entity
 * Date：2019/8/12 17:09
 * Introduce：我的商会
 */
public class HLMyCompanyEntity {
    @SerializedName("avatar")
    private String company_img;
    @SerializedName("title")
    private String company_name;
    @SerializedName("all_num")
    private String member_num;
    @SerializedName("new_num")
    private String member_add_num;
    @SerializedName("follow_num")
    private String member_followed;
    @SerializedName("leader_arr")
    private List<LeaderEntity> mEntityList;//领导
    //组织架构
    private String organization;
    @SerializedName("detail")
    private String introduction;
    @SerializedName("member_arr")
    private List<HLPeopleEntity> peopleEntities;
    private List<OrganizationEntity> organization_list;

    public String getCompany_img() {
        return company_img;
    }

    public void setCompany_img(String pCompany_img) {
        company_img = pCompany_img;
    }

    public String getCompany_name() {
        return company_name;
    }

    public void setCompany_name(String pCompany_name) {
        company_name = pCompany_name;
    }

    public String getMember_num() {
        return member_num;
    }

    public void setMember_num(String pMember_num) {
        member_num = pMember_num;
    }

    public String getMember_add_num() {
        return member_add_num;
    }

    public void setMember_add_num(String pMember_add_num) {
        member_add_num = pMember_add_num;
    }

    public String getMember_followed() {
        return member_followed;
    }

    public void setMember_followed(String pMember_followed) {
        member_followed = pMember_followed;
    }

    public List<LeaderEntity> getEntityList() {
        return mEntityList;
    }

    public void setEntityList(List<LeaderEntity> pEntityList) {
        mEntityList = pEntityList;
    }

    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String pOrganization) {
        organization = pOrganization;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String pIntroduction) {
        introduction = pIntroduction;
    }

    public List<HLPeopleEntity> getPeopleEntities() {
        return peopleEntities;
    }

    public void setPeopleEntities(List<HLPeopleEntity> pPeopleEntities) {
        peopleEntities = pPeopleEntities;
    }

    public List<OrganizationEntity> getOrganization_list() {
        return organization_list;
    }

    public void setOrganization_list(List<OrganizationEntity> pOrganization_list) {
        organization_list = pOrganization_list;
    }

    public static class LeaderEntity implements Parcelable {
        public static final Creator<LeaderEntity> CREATOR = new Creator<LeaderEntity>() {
            @Override
            public LeaderEntity createFromParcel(Parcel in) {
                return new LeaderEntity(in);
            }

            @Override
            public LeaderEntity[] newArray(int size) {
                return new LeaderEntity[size];
            }
        };
        private String id;
        private String avatar;
        @SerializedName("real_name")
        private String name;
        private String position;
        @SerializedName("title")
        private String tag;

        public LeaderEntity() {
        }

        protected LeaderEntity(Parcel in) {
            id = in.readString();
            avatar = in.readString();
            name = in.readString();
            position = in.readString();
            tag = in.readString();
        }

        public String getId() {
            return id;
        }

        public void setId(String pId) {
            id = pId;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String pAvatar) {
            avatar = pAvatar;
        }

        public String getName() {
            return name;
        }

        public void setName(String pName) {
            name = pName;
        }

        public String getPosition() {
            return position;
        }

        public void setPosition(String pPosition) {
            position = pPosition;
        }

        public String getTag() {
            return tag;
        }

        public void setTag(String pTag) {
            tag = pTag;
        }

        /**
         * Describe the kinds of special objects contained in this Parcelable
         * instance's marshaled representation. For example, if the object will
         * include a file descriptor in the output of {@link #writeToParcel(Parcel, int)},
         * the return value of this method must include the
         * {@link #CONTENTS_FILE_DESCRIPTOR} bit.
         *
         * @return a bitmask indicating the set of special object types marshaled
         * by this Parcelable object instance.
         */
        @Override
        public int describeContents() {
            return 0;
        }

        /**
         * Flatten this object in to a Parcel.
         *
         * @param dest  The Parcel in which the object should be written.
         * @param flags Additional flags about how the object should be written.
         *              May be 0 or {@link #PARCELABLE_WRITE_RETURN_VALUE}.
         */
        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(id);
            dest.writeString(avatar);
            dest.writeString(name);
            dest.writeString(position);
            dest.writeString(tag);
        }
    }

}
